import { SET_CLIENT_WIDTH } from '../types'

export default {
    namespaced: true,
    state: {
        clientWidth: 0
    },
    mutations: {
        [SET_CLIENT_WIDTH](state, data) {
            state.clientWidth = data;
        }
    },
    actions: {
        setClientWidth({ commit }, data) {
            commit(SET_CLIENT_WIDTH, data);
        }
    },
    getters: {
        getClientWidth: state => state.clientWidth
    }
}